const targetObj = {
  name: 'henry'
}
const handler = {} // 不写就按默认的读写逻辑走

const revocable = Proxy.revocable(targetObj, handler)
const proxy = revocable.proxy

proxy.age = 18
console.log(proxy.name, proxy.age) //=> henry

console.log('===')
revocable.revoke()
// proxy.a = 'a' //=> Uncaught TypeError: Cannot perform 'set' on a proxy that has been revoked
// console.log(proxy.name) //=> Uncaught TypeError: Cannot perform 'get' on a proxy that has been revoked
delete proxy.age //=> Uncaught TypeError: Cannot perform 'deleteProperty' on a proxy that has been revoked
